home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / fax / src / port / freebsd / defs < prev    next >
Text File  |  1994-08-01  |  9KB  |  323 lines

  1. #    $Header: /usr/people/sam/fax/port/freebsd/RCS/defs,v 1.6 1994/03/29 01:06:19 sam Rel $
  2. #
  3. # FlexFAX Facsimile Software
  4. #
  5. # Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994 Sam Leffler
  6. # Copyright (c) 1991, 1992, 1993, 1994 Silicon Graphics, Inc.
  7. # Permission to use, copy, modify, distribute, and sell this software and 
  8. # its documentation for any purpose is hereby granted without fee, provided
  9. # that (i) the above copyright notices and this permission notice appear in
  10. # all copies of the software and related documentation, and (ii) the names of
  11. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  12. # publicity relating to the software without the specific, prior written
  13. # permission of Sam Leffler and Silicon Graphics.
  14. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  15. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  16. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  17. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  21. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  22. # OF THIS SOFTWARE.
  23. #
  24.  
  25. #
  26. # These definitions are for building the software on a 486 under
  27. # FreeBSD 
  28. #
  29. # TARGET:    freebsd
  30. # COMPILER:    gcc
  31. #
  32. SHELL    = /bin/bash
  33. DESTDIR    = .
  34. NULL    =
  35. MAKEFILE= Makefile
  36.  
  37. #
  38. # Location of auxiliary stuff needed
  39. #
  40. PORT    = ${DEPTH}/port/freebsd
  41. BSDI    = ${DEPTH}/port/bsdi
  42. GENERIC    = ${DEPTH}/port/generic
  43. #
  44. # Basic tools used in the build process.
  45. #
  46.  
  47. C++    = /usr/bin/g++
  48. CC    = /usr/bin/gcc
  49. NAWK    = /usr/bin/awk
  50. INSTALL    = bash ${BSDI}/install.sh
  51. MKDEPEND= ${GENERIC}/mkdepend
  52. AR    = /usr/bin/ar
  53. RANLIB    = /usr/bin/ranlib
  54. SED    = /usr/bin/sed
  55.  
  56. #
  57. # AR options for creating/updating an archive
  58. #
  59. AROPTS=    crl
  60.  
  61. #
  62. # Special options for lptops compilation (yech).
  63. #
  64. LPTOPSLCOPTS=
  65.  
  66. #
  67. # FreeBSD execs getty to do the work.
  68. #
  69. SYSGETTY=GettyBSD.c++
  70.  
  71. #
  72. # FreeBSD wants BSD-style UUCP lock support.
  73. #
  74. UUCP_LOCKDIR=/var/spool/lock
  75. UUCP_LOCKTYPE=0
  76. UUCP_LOCKMODE=0644
  77.  
  78. #
  79. # Location of Adobe Font Metrics for lptops.
  80. #
  81. AFMDIR=/usr/local/lib/afm
  82.  
  83. #
  84. # PostScript imager for server.  PSPACKAGE is one of:
  85. #
  86. # dps    for Display Postscript
  87. # gs    for Ghostscript
  88. #
  89. # and PSIMAGER is the pathname of the binary executable.
  90. #
  91. PSPACKAGE=gs
  92. PSIMAGER=/usr/local/bin/gs
  93.  
  94. #
  95. # Mail program sending notification messages.
  96. #
  97. SENDMAIL=/usr/sbin/sendmail
  98.  
  99. #
  100. # Default optimizer and prototype options
  101. #
  102. OPTIMIZER=-g
  103. #PROTOTYPES=-prototypes
  104. CVERSION=-D__ANSI_CPP__
  105. GVERSION=
  106. C++FILE=-x c++
  107.  
  108. # default definitions for programs--overide them as desired
  109. LIBS=    ${LIBUTIL} ${LIBTIFF} ${LIBIV} -lutil
  110. LLDLIBS=${LIBS} ${MACHDEPLIBS}
  111. #
  112. # Override this definition to eliminate shared library use.
  113. #
  114. SHDLIBC=-lc
  115.  
  116. #
  117. # Libraries that may vary from machine to machine (especially if
  118. # you use GNU GCC instead of AT&T C++).
  119. #
  120. MACHDEPLIBS=-lg++
  121. #
  122. # You must have v3.0 or newer of the TIFF library.  If
  123. # you already have it installed, or if you have version 3.0
  124. # or newer of InterViews installed (which includes the TIFF
  125. # library), you can point these to those places.  Otherwise,
  126. # you can just use the code provided here.
  127. #
  128. TIFF=    ${DEPTH}/libtiff
  129. LIBTIFF=${TIFF}/libtiff.a
  130. #
  131. # If you already have InterViews 3.0 or newer installed,
  132. # define these to be something like:
  133. #
  134. #IV=    /usr/include
  135. #LIBIV=    /usr/lib/libIV.a
  136. # Otherwise you can just use the subset of classes used by
  137. # the fax software and collected here in a hacked-up library.
  138. #
  139. IV=    ${DEPTH}/iv
  140. LIBIV=    ${IV}/libivhack.a
  141. # random utility functions and classes
  142. UTIL=    ${DEPTH}/util
  143. LIBUTIL=${UTIL}/libfaxutil.a
  144.  
  145. #
  146. # Uid&Gid for installing server stuff.  Note that the server process
  147. # proper (/usr/etc/faxd or similar) must either run setuid root or
  148. # setuid uucp (i.e. fax and uucp must have the same uid).  This is
  149. # so that the fax server can participate in the UUCP locking scheme
  150. # and thereby implement tty line sharing (i.e. share the same line
  151. # and modem for both fax and data).
  152. #
  153. FAXUSER=uucp
  154. FAXGROUP=dialer
  155.  
  156. #
  157. # Directories where stuff gets placed:
  158. #
  159. # BIN        client-directed applications
  160. # LIBDATA    client-directed application library data files
  161. # LIBEXEC    client-directed application library executables
  162. # SPOOL        spooling area for servers
  163. # DOC        non-manual documentation
  164. # USRETC    place for servers (faxd & faxd.recv)
  165. #
  166. BIN=    /usr/local/bin
  167. LIBDATA=/usr/local/lib/fax
  168. LIBEXEC=/usr/local/lib/fax
  169. SPOOL=    /var/spool/fax
  170. DOC=    /usr/local/doc/flexfax
  171. USRETC=    /usr/local/etc
  172. #
  173. # Manual-related controls:
  174. #
  175. # MAN        head of manual tree
  176. # MANAPP    subdirectory for stuff in BIN
  177. # MANSYS    subdirectory for server & server-related apps
  178. # MANFILES    subdirectory for file format info 
  179. # PAGEDIRT    temp files to remove on clean/clobber
  180. #
  181. MAN    = /usr/local/man
  182. MANAPPS    = man1
  183. MANSYS    = man8
  184. MANFILES= man5
  185.  
  186. MANCAPP    = ${CLIENTAPPS}
  187. MANCFILE= ${CLIENTFILES:.4f=.5f}
  188. MANSAPP    = ${SERVERAPPS:.1m=.8c}
  189. MANSFILE= ${SERVERFILES:.4f=.5f}
  190. PAGEDIRT= ${MANCFILE} ${MANSAPP} ${MANSFILE}
  191.  
  192. .SUFFIXES: .1m .4f .5f .8c
  193. .1m.8c:; ${MANSED} -e 's/1M/8C/' -e 's/4F/5F/' $< > $@
  194. .4f.5f:; ${MANSED} -e 's/1M/8C/' -e 's/4F/5F/' $< > $@
  195.  
  196. # programs used during installation
  197. ECHO=    /bin/echo
  198. GREP=    /usr/bin/grep
  199. RM=    /bin/rm
  200. PWD=    /bin/pwd
  201. CHROOT=    /usr/sbin/chroot
  202.  
  203. #
  204. # Definitions used by common rules.
  205. #
  206. COMMONRULES=${DEPTH}/rules
  207. COMMONTARGS= clobber clean rmtargets depend
  208. #COMMONTARGS= clobber clean rmtargets depend incdepend
  209.  
  210. #
  211. # C compiler flags are composed of variable (set on the command line),
  212. # local (defined in the makefile), and global (defined in this file)
  213. # parts, in that order.  This ordering is used so that variable or
  214. # locally specified include directories are searched before the globally
  215. # specified ones.
  216. #
  217. CFLAGS=    ${CVERSION} ${VCFLAGS} ${LCFLAGS} ${GCFLAGS}
  218.  
  219. VCFLAGS=${VCDEFS} ${VCINCS} ${VCOPTS}
  220. LCFLAGS=${LCDEFS} ${LCINCS} ${LCOPTS}
  221. GCFLAGS=${GCDEFS} ${GCINCS} ${GCOPTS}
  222.  
  223. COPTS=    ${VCOPTS} ${LCOPTS} ${GCOPTS}
  224. CDEFS=    ${VCDEFS} ${LCDEFS} ${GCDEFS}
  225. CINCS=    ${VCINCS} ${LCINCS} ${GCINCS}
  226.  
  227. GCOPTS=    ${OPTIMIZER} ${PROTOTYPES}
  228. GCDEFS=    -D__ANSI_CPP__ -D__bsdi__
  229. GCINCS=    -I- -I. -I${DEPTH} -I${PORT} -I${BSDI} -I${GENERIC} -I${UTIL} -I${TIFF}
  230. #
  231. # C++ flags are decomposed using the same hierarchy as C flags.
  232. #
  233. C++FLAGS=${CVERSION} ${VC++FLAGS} ${LC++FLAGS} ${GC++FLAGS}
  234.  
  235. VC++FLAGS=${VC++DEFS} ${VC++INCS} ${VC++OPTS}
  236. LC++FLAGS=${LC++DEFS} ${LC++INCS} ${LC++OPTS}
  237. GC++FLAGS=${GC++DEFS} ${GC++INCS} ${GC++OPTS}
  238.  
  239. C++OPTS=${VC++OPTS} ${LC++OPTS} ${GC++OPTS}
  240. C++DEFS=${VC++DEFS} ${LC++DEFS} ${GC++DEFS}
  241. C++INCS=${VC++INCS} ${LC++INCS} ${GC++INCS}
  242.  
  243. GC++OPTS=${OPTIMIZER}
  244. GC++INCS=-I. -I${DEPTH} -I${PORT} -I${BSDI} -I${GENERIC} -I${UTIL} \
  245.     -I${IV} -I${TIFF}
  246. GC++DEFS=-D__ANSI_CPP__ -D__bsdi__
  247.  
  248. #
  249. # Loader flags, composed of library (-l's) and option parts, with
  250. # the libraries appearing last.  Both of these are divided into variable,
  251. # local, and global parts.  The composition of LDFLAGS is done in the
  252. # other "direction" from CFLAGS so that all the -L's, that are part of
  253. # LDOPTS, appear before any of the -l's, which are part of LDLIBS.
  254. # Another benefit of segregating the libraries from the remaining of the
  255. # loader options is that the libraries alone can easily be given to
  256. # another program, e.g., lint.
  257. #
  258. # Notes:
  259. #   - If a program should not be linked with the shared version of libc,
  260. #     then its make file should override the setting of SHDLIBC with a
  261. #     line such as "SHDLIBC=".
  262. #
  263. LDFLAGS=${LDOPTS} ${LDLIBS}
  264.  
  265. LDOPTS=${VLDOPTS} ${LLDOPTS} ${GLDOPTS}
  266. LDLIBS=${VLDLIBS} ${LLDLIBS} ${GLDLIBS}
  267.  
  268. GLDOPTS=-L${ROOT}/usr/local/lib
  269. GLDLIBS=${SHDLIBC}
  270.  
  271. #
  272. # Convenient command macros that include the flags macros.
  273. #
  274. C++F=    ${C++} ${C++FLAGS}
  275. CCF=    ${CC} ${CFLAGS}
  276.  
  277. #
  278. # Shell script for generating make dependencies.  MKDEPEND is a shorthand
  279. # for the tool's absolute pathname.  MKDEPENDC adds MKDEPCFLAGS and the -c
  280. # mkdepend option to this.  The other language's mkdepend variables try to
  281. # include their language's name in the variable names.  Unfortunately, a
  282. # lot of makefiles already use the nondescript LMKDEPFLAGS for C language
  283. # mkdepend options, so we initialize LMKDEPCFLAGS with ${LMKDEPFLAGS}.
  284. #
  285. MKDEPENDC++    =${MKDEPEND} ${MKDEPC++FLAGS} -c "${C++F} ${C++FILE} -M"
  286. MKDEPENDC    =${MKDEPEND} ${MKDEPCFLAGS} -c "${CCF} -M"
  287.  
  288. MKDEPC++FLAGS    =${VMKDEPC++FLAGS} ${LMKDEPC++FLAGS} ${GMKDEPC++FLAGS}
  289. MKDEPCFLAGS    =${VMKDEPCFLAGS} ${LMKDEPCFLAGS} ${GMKDEPCFLAGS}
  290. LMKDEPCFLAGS    =${LMKDEPFLAGS}
  291.  
  292. GMKDEPFLAGS    =-e 's@ ${INCLDIR}/@ $${INCLDIR}/@' -e 's@ ${ROOT}/@ $${ROOT}/@'
  293. GMKDEPC++FLAGS    =${GMKDEPFLAGS} -s C++ -e 's@\.c++\.o *: @\.o: @'
  294. GMKDEPCFLAGS    =${GMKDEPFLAGS}
  295.  
  296. #
  297. # Macro to add to LMKDEPCFLAGS or LMKDEPC++FLAGS if your makefile builds
  298. # single-source programs using null suffix rules (e.g., .c:}.  This option
  299. # works for both C and C++ make depend.
  300. #
  301. NULLSUFFIX_MKDEPFLAG=-e 's@\.o+*:@:@'
  302. #
  303. # MKDEPFILE is the name of the dependency database, included by rules.
  304. #
  305. MKDEPFILE=Makedepend
  306. #
  307. # CDEPFILES lists all C or cc-compiled source files that depend on header
  308. # files computable by ${MKDEPENDC}.  C++DEPFILES lists all C++ files having
  309. # dependencies computable by ${MKDEPENDC++}.
  310. #
  311. C++DEPFILES=${C++FILES}
  312. CDEPFILES=${CFILES}
  313. DEPFILES=${C++DEPFILES} ${CDEPFILES}
  314.  
  315. #
  316. # Directory shorthands, mainly for make depend (see GMKDEPFLAGS above).
  317. #
  318. INCLDIR    =${ROOT}/usr/include
  319.